package com.rpc.producer;

import agan.rpc.protocol.HttpServer;
import agan.rpc.register.LocalRegister;
import com.agan.producer.common.service.HelloService;
import com.rpc.producer.service.impl.HelloServiceImpl;

public class Provider {
    public static void main(String[] args) {
        // 注册服务
        LocalRegister.register(HelloService.class.getName(), HelloServiceImpl.class);

        HttpServer server = new HttpServer();
        server.start("localhost",8080);
    }
}
